package com.ytjj.qmyx.mall.enums;

import lombok.Getter;

/**
 *
 * @version 1.0
 * 
 */
@Getter
public enum SourceBannerTypeEnums {

    android("app"),
    ios("app"),
    weapp("app"),
    devtools("app"),
    h5("H5"),
    qa("H5");

    String bannerType;

    SourceBannerTypeEnums(String bannerType){
        this.bannerType = bannerType;
    }

    public static String getSourceBannerType(String type){
        SourceBannerTypeEnums[] sourceBannerTypeEnums = SourceBannerTypeEnums.values();
        for(SourceBannerTypeEnums item : sourceBannerTypeEnums){
            if(item.name().equals(type)){
                return item.getBannerType();
            }
        }
        return null;
    }
}
